<table width="100%" cellspacing="0px;" cellpadding="0px" border="0px;">
	<tr class="table_title">
		<th style="width:36px;" class="txt_center">NO</th>
		<th style="width:36px;" class="txt_center">
			<input type="checkbox" name="checkAll" id="checkAll"/>
		</th>
		<th class="w60 center" title="Mã số menu.">ID</th>
		<th class="center w80" title="Tiêu đề của sản phẩm.">PARENT ID</th>
		<th class="txt_left w200" title="Hình ảnh giới thiệu.">NAME</th>
		<th class="txt_left w170" title="Link tới thư mục.">LINK</th>
		<th class="txt_left w200" title="Giá của sản phầm">SLUG</th>
		<th class="center w99" title="Tên của chuyên mục.">ORDER</th>
		<th class="w90" title="Ngày đăng.">CREATED</th>
		<th style="width:60px;" title="Đăng lên trang chủ?">STATUS</th>
		<th style="width:92px;">ACTION</th>
	</tr>
<?php
	if(!empty($result))
	{
	$i = 0;
	foreach($result as $rs){ 
?>
	<tr class="table_tr">
		<td class="center">
			<?=$i+1?>
		</td>
		<td class="center">
			<input type="checkbox" name="check_item" id="check_item_<?=$i?>" value="<?=$rs['id']?>" onclick="check_item(<?=$i?>)"/>
		</td>
		<td class="center"><?=$rs['id']?></td>
		<td class="center"><?=$rs['parent_id']?></td>
		<td class="txt_left"><?=$rs['name']?></td>
		<td class="txt_left"><?=$rs['link']?></td>
		<td class="txt_left" ><?=$rs['slug']?></td>
		<td class="center" ><?=$rs['order']?></td>
		<td class="center" ><?=date('d-m-Y',strtotime($rs['created_time']))?></td>
		<td class="center" id="ajax_status_<?=$rs['id']?>">
			<img src="<?php if($rs['status'] == 1){ echo base_url().'static/images/checkmark.png'; }else{ echo '';}?>" alt="" onclick="return change_status(<?=$rs['id']?>,<?=$rs['status']?>)"/>
		</td>
		<td class="center" >
			<div class="content_button_detail_action mr3 left" onclick="location.href='<?=base_url().'index.php/admin/'.$module.'/update/'.$rs['id']?>'" style="margin-right:3px;">Edit</div>
			<div class="content_button_detail_action left" style="margin-right:0px;"  onclick="location.href='<?=base_url().'index.php/admin/'.$module.'/del/'.$rs['id']?>'">Del</div>
			<div class="clearall"></div>
		</td>
	</tr>
<?php 
	$i++;
	}
}else{
?>
<tr style="height:36px;">
	<td colspan="13" style="text-align:center;"><span style="font-size:13px;font-weight:Bold;">No-Data</span></td>
</tr>
<?php	
}
?>
</table>